package com.dong.sharding.repo;

import com.dong.sharding.entity.LogEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface LogRepo extends JpaRepository<LogEntity, String> {

//    @Query(value = "select * from log where create_time between ?1 and ?2", nativeQuery = true)
    List<LogEntity> findByCreateTimeBetween(Date createTimeAfter, Date createTimeBefore);
}
